package com.imc.beans;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * TbDeptDuty entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_dept_duty", catalog = "imcdbserver")
public class TbDeptDuty implements java.io.Serializable {

	// Fields

	private TbDeptDutyId id;

	// Constructors

	/** default constructor */
	public TbDeptDuty() {
	}

	/** full constructor */
	public TbDeptDuty(TbDeptDutyId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "dpId", column = @Column(name = "dp_id")),
			@AttributeOverride(name = "dpName", column = @Column(name = "dp_name", length = 20)),
			@AttributeOverride(name = "dpDescrible", column = @Column(name = "dp_describle", length = 20)),
			@AttributeOverride(name = "corpId", column = @Column(name = "corp_id", nullable = false)) })
	public TbDeptDutyId getId() {
		return this.id;
	}

	public void setId(TbDeptDutyId id) {
		this.id = id;
	}

}